package b_buffer;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package b_buffer
 * @date 2024/4/14 上午11:49
 */
public class Test01 {
    public static void main(String[] args) {
        try {
            BufferedWriter writer = new BufferedWriter(new FileWriter("module11\\1.txt", true));
            writer.write("莫愁前路无知己");
            writer.newLine();
            writer.write("天下谁人不识君");
            writer.newLine();
            writer.write("但使龙城飞将在");
            writer.newLine();
            writer.write("不教胡马度阴山");
            writer.newLine();
            writer.close();

        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
